<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.net.URLDecoder"%>
<%@page import="java.sql.*"%>
<%@ include file="session-check.jsp"%> 
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>修改页面</title>
 <link rel="shortcut icon" href="<%=request.getContextPath()%>/static/common/images/favicon.ico"/>
        <link rel="stylesheet" href="<%=request.getContextPath()%>/static/common/vendor/bootstrap/css/bootstrap.min.css" />
        <link rel="stylesheet" href="<%=request.getContextPath()%>/static/common/styles/hiring.css" />
<style>
* {
	font-family: "微软雅黑";
}

form {
	margin-top: 50px;
}
</style>

</head>
<body>
	<div class="container">
		<ol class="breadcrumb">
			<li><a href="#">Home</a></li>
			<li class="active">修改职位信息</li>
		</ol>
		<c:if test="${not empty parem.result }">
		<div class="alert alert-warning alert-dismissible fade in"
			role="alert">
			<button type="button" class="close" data-dismiss="alert">
				<span aria-hidden="true">×</span><span class="sr-only">Close</span>
			</button>
			<strong>修改失败!</strong>
		</div>
		</c:if>
		<c:forEach items="${updateQuery }" var="item">
		<form class="form-horizontal" role="form" action="PositionServlet?command=updatepositionsubmit&id=${item.id }"
			method="POST" onsubmit="return validate();">
			<div class="form-group">
				<label for="code" class="col-sm-2 control-label">职位名称：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="code" name="name"
						onblur="return validate();"
						value="${item.name }"
						onblur="return validatecode();"><span id="codeTip"></span>
				</div>
			</div>
			<div class="form-group">
				<label for="password" class="col-sm-2 control-label">职责：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="password"
						name="duty" value="${item.duty }">
				</div>
			</div>
			<div class="form-group">
				<label for="username" class="col-sm-2 control-label">所需能力：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="username"
						name="ability" value="${item.ability }"><span
						id="usernameTip"></span>
				</div>
			</div>
			<div class="form-group">
				<label for="gender" class="col-sm-2 control-label">薪资(最低薪资)：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="gender" name="salary1"
						value="${item.salary1 }"><span
						id="genderTip"></span>
				</div>
			</div>
			<div class="form-group">
				<label for="state" class="col-sm-2 control-label">薪资(最高薪资)：</label>
				<div class="col-sm-10">
					<input type="text" class="form-control" id="state" name="salary2"
						value="${item.salary2 }"><span
						id="stateTip"></span>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-offset-2 col-sm-10">
					<button type="submit" class="btn btn-primary">修 改</button>
					<button type="button" class="btn btn-default"
						onclick="history.back();">返 回</button>
				</div>
			</div>
		</form>
		</c:forEach>
	</div>

	<script src="vendor/bootstrap/js/bootstrap.min.js"></script>
	<script src="scripts/update.js"></script>
</body>
</html>